[gd_scene load_steps=11 format=3 uid="uid://c3ghuaif38j6l"]

[ext_resource type="Script" path="res://scenes/ui/level_done_screen.gd" id="1_6u354"]
[ext_resource type="Texture2D" uid="uid://thnrfs1tirjj" path="res://assets/gui/menu/backgrounds/main_panel.png" id="2_qek0e"]
[ext_resource type="Texture2D" uid="uid://cat1jloyg2wym" path="res://assets/gui/menu/buttons/buttonMed_brown.png" id="3_ywn3q"]
[ext_resource type="Texture2D" uid="uid://bbdwp6f0d3nib" path="res://assets/gui/menu/buttons/buttonMed_brown_pressed.png" id="4_08bu8"]
[ext_resource type="Texture2D" uid="uid://dk8ep1qsmga0q" path="res://assets/gui/menu/buttons/buttonMed_brown_hover.png" id="5_53lsk"]
[ext_resource type="FontFile" uid="uid://btstgc45ggura" path="res://assets/fonts/courier.tres" id="6_iar46"]

[sub_resource type="Animation" id="3"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:visible")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}

[sub_resource type="Animation" id="1"]
resource_name = "hide"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [true, false]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = false
tracks/1/path = NodePath(".:scale")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(1, 1), Vector2(1e-05, 1e-05)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath(".:modulate")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}

[sub_resource type="Animation" id="2"]
resource_name = "show"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [true, true]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = false
tracks/1/path = NodePath(".:scale")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(1e-05, 1e-05), Vector2(1, 1)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath(".:modulate")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_wxkik"]
_data = {
"RESET": SubResource("3"),
"hide": SubResource("1"),
"show": SubResource("2")
}

[node name="level_done_screen" type="Node2D"]
process_mode = 3
visible = false
script = ExtResource("1_6u354")

[node name="background" type="NinePatchRect" parent="."]
offset_left = -500.0
offset_top = -200.0
offset_right = 500.0
offset_bottom = 200.0
texture = ExtResource("2_qek0e")
patch_margin_left = 32
patch_margin_top = 32
patch_margin_right = 32
patch_margin_bottom = 32
axis_stretch_horizontal = 1
axis_stretch_vertical = 1

[node name="widgets" type="Control" parent="."]
layout_mode = 3
anchors_preset = 0
offset_left = -600.0
offset_top = -350.0
offset_right = 600.0
offset_bottom = 350.0

[node name="Label" type="Label" parent="widgets"]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.093
anchor_top = 0.237
anchor_right = 0.093
anchor_bottom = 0.237
offset_left = 437.4
offset_top = 2.09999
offset_right = 540.4
offset_bottom = 49.1
text = "level finished"

[node name="replay_button" type="TextureButton" parent="widgets"]
layout_mode = 0
offset_left = 505.0
offset_top = 246.0
offset_right = 695.0
offset_bottom = 286.0
focus_neighbor_left = NodePath("../name/load_button")
texture_normal = ExtResource("3_ywn3q")
texture_pressed = ExtResource("4_08bu8")
texture_hover = ExtResource("5_53lsk")
texture_focused = ExtResource("5_53lsk")
metadata/_edit_group_ = true

[node name="label" type="Label" parent="widgets/replay_button"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_fonts/font = ExtResource("6_iar46")
text = "play again"
horizontal_alignment = 1
vertical_alignment = 1

[node name="level_select_button" type="TextureButton" parent="widgets"]
layout_mode = 0
offset_left = 505.0
offset_top = 418.0
offset_right = 695.0
offset_bottom = 458.0
focus_neighbor_left = NodePath("../name/load_button")
texture_normal = ExtResource("3_ywn3q")
texture_pressed = ExtResource("4_08bu8")
texture_hover = ExtResource("5_53lsk")
texture_focused = ExtResource("5_53lsk")
metadata/_edit_group_ = true

[node name="label" type="Label" parent="widgets/level_select_button"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_fonts/font = ExtResource("6_iar46")
text = "level menu"
horizontal_alignment = 1
vertical_alignment = 1

[node name="main_menu_button" type="TextureButton" parent="widgets"]
layout_mode = 0
offset_left = 505.0
offset_top = 331.0
offset_right = 695.0
offset_bottom = 371.0
focus_neighbor_left = NodePath("../name/load_button")
texture_normal = ExtResource("3_ywn3q")
texture_pressed = ExtResource("4_08bu8")
texture_hover = ExtResource("5_53lsk")
texture_focused = ExtResource("5_53lsk")
metadata/_edit_group_ = true

[node name="label" type="Label" parent="widgets/main_menu_button"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_fonts/font = ExtResource("6_iar46")
text = "main menu"
horizontal_alignment = 1
vertical_alignment = 1

[node name="animations" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_wxkik")
}
speed_scale = 4.0
